package com.gao.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author Gao
 */
@Data
public class User implements Serializable {
    private Integer userId;
    private String username;
    private String password;
    private String salt;

    private Set<Order> orders = new LinkedHashSet<>();
    private Set<Role> roles = new HashSet<>();
    private Set<Permission> permissions = new HashSet<>();
}